package org.simp.util.log;
/**
 *
 * @Author zhuhaitao at 2014年6月24日
 *
 *
 **/
public class LoggerFactory {

	
	private Logger log ;
	
	private static LoggerFactory factory;
	
	private LoggerFactory (Logger log){
		this.log = log;
	}
	
	public static void createLoggerFactory(Logger log){
		factory = new LoggerFactory(log);
	}
	
	public static Logger getLogger(Class clazz){
		return factory.getLogger().create(clazz);
	}
	
	private Logger getLogger(){
		if(log == null){
			log = new LogSysOut();
		}
		return log;
	}
}
